package org.trinity.netdisk.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.trinity.netdisk.entity.User;

@Repository
public interface UserMapper {
    User select(@Param("username") String username, @Param("password") String password);
    User selectByUsername(@Param("u") String username);
    User selectByEmail(@Param("email") String email);
    void insert(User user);
    User selectById(Long id);
    int updatePasswdByEmail(@Param("email") String email, @Param("password") String passwd);
}
